import request from '@/utils/request'
import qs from 'qs'

// 表位方案新增
export function meterPositionPlanSave(data) {
  return request({
    url: '/meterPositionPlan/save',
    method: 'post',
    data,
  })
}
//表位列表 
export function meterPositionList(data) {
  return request({
    url: '/meterPosition/list',
    method: 'post',
    data:qs.stringify(data, { indices: false }),
  })
}
// 树状结构列表 
export function meterPositionListTree(data) {
  return request({
    url: '/meterPosition/listTree',
    method: 'post',
    data:qs.stringify(data, { indices: false }),
  })
}
// 表位方案列表
export function meterPositionPlanList() {
  return request({
    url: '/meterPositionPlan/list',
    method: 'post',
  })
}
//删除方案
export function meterPositionPlanRemove(data) {
  return request({
    url: '/meterPositionPlan/remove',
    method: 'post',
    data:qs.stringify(data, { indices: false }),
  })
}
//用电类型列表查询
export function sElectricityUseTypeList(data) {
  return request({
    url: '/sElectricityUseType/list',
    method: 'post',
    data:qs.stringify(data, { indices: false }),
  })
}
//变压器容量-损耗参数列表查询
export function sLossParametersList() {
  return request({
    url: '/sLossParameters/list',
    method: 'post',
  })
}
//变压器容量-损耗参数编辑
export function sLossParametersUpdate(data) {
  return request({
    url: '/sLossParameters/update',
    method: 'post',
    data,
  })
}
// 功率因数-力调标准列表查询
export function sPowerFactorStandardList() {
  return request({
    url: '/sPowerFactorStandard/list',
    method: 'post',
  })
}
// 功率因数-恢复默认值
export function sPowerFactorStandardReset(data) {
  return request({
    url: '/sPowerFactorStandard/reset',
    method: 'post',
    data,
  })
}
// 功率因数-更新
export function sPowerFactorStandardUpdate(data) {
  return request({
    url: '/sPowerFactorStandard/update',
    method: 'post',
    data,
  })
}
// 核算方案列表查询
export function sAccountingPlanList() {
  return request({
    url: '/sAccountingPlan/list',
    method: 'post',
  })
}
// 核算方案新增
export function sAccountingPlanSave(data) {
  return request({
    url: '/sAccountingPlan/save',
    method: 'post',
    data
  })
}
// 查询单条数据
export function sAccountingPlanSelectOne(data) {
  return request({
    url: '/sAccountingPlan/selectOne',
    method: 'post',
    data
  })
}
// 核算方案删除
export function sAccountingPlanRemove(data) {
  return request({
    url: '/sAccountingPlan/remove',
    method: 'post',
    data:qs.stringify(data, { indices: false })
  })
}
// 核算方案-电价公式修改顺序
export function sElectricityPriceFormulaChangeSort(data) {
  return request({
    url: '/sElectricityPriceFormula/changeSort',
    method: 'post',
    data:qs.stringify(data, { indices: false })
  })
}
// 核算方案-电价公式列表查询
export function sElectricityPriceFormulaList(data) {
  return request({
    url: '/sElectricityPriceFormula/list',
    method: 'post',
    data:qs.stringify(data, { indices: false }),
  })
}
// 核算方案-电价公式删除
export function sElectricityPriceFormulaRemove(data) {
  return request({
    url: '/sElectricityPriceFormula/remove',
    method: 'post',
    data:qs.stringify(data, { indices: false }),
  })
}
// 核算方案-电价公式新增
export function sElectricityPriceFormulaSave(data) {
  return request({
    url: '/sElectricityPriceFormula/save',
    method: 'post',
    data,
  })
}
// 核算方案-电价公式查询单条数据
export function sElectricityPriceFormulaSelectOne(data) {
  return request({
    url: '/sElectricityPriceFormula/selectOne',
    method: 'post',
    data
  })
}
// 核算方案-电价公式编辑
export function sElectricityPriceFormulaUpdate(data) {
  return request({
    url: '/sElectricityPriceFormula/update',
    method: 'post',
    data
  })
}
